|
| .NET Framework Class Library |
| ConcurrentBag<(Of <(T>)>)..::.Add Method |
| ConcurrentBag<(Of <(T>)>) Class See Also Send Feedback |
Adds an object to the ConcurrentBag<(Of <(T>)>).
Namespace:
System.Collections.Concurrent
Assembly:
System.Threading (in System.Threading.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Public Sub Add ( _ item As T _ ) |
| C# |
|---|
public void Add( T item ) |
Parameters
- item
- Type: T
The object to be added to the ConcurrentBag<(Of <(T>)>). The value can be a null reference (Nothing in Visual Basic) for reference types.